<!-- <script type="text/javascript">
           jQuery(document).ready(function(){
               // binds form submission and fields to the validation engine
               jQuery("#CriaderoInsertarForm").validationEngine();
           });
 </script>-->
 <script type="text/javascript">
    jQuery(document).ready(function() {
       
    var sheepItForm = jQuery('#sheepItForm').sheepIt({
        separator: '',
        allowRemoveLast: true,
        allowRemoveCurrent: true,
        allowRemoveAll: true,
        allowAdd: true,
        allowAddN: true,
        maxFormsCount: 20,
        minFormsCount: 0,
        iniFormsCount: 1
    });
});
</script>
 <script type="text/javascript">
    jQuery(document).ready(function() {
       
    var sheepItForm = jQuery('#sheepItFormB').sheepIt({
        separator: '',
        allowRemoveLast: true,
        allowRemoveCurrent: true,
        allowRemoveAll: true,
        allowAdd: true,
        allowAddN: true,
        maxFormsCount: 20,
        minFormsCount: 0,
        iniFormsCount: 1
    });
});
</script>
<!-- Columns -->
      <div id="cols" class="box"> 
    
    
<div class="grid_9">
						<div class="box">
							<div class="header">
								<?php echo $this->Html->image('icons/packs/fugue/16x16/ui-text-field-format.png');?>
								<h3>Registro Nuevo Criadero</h3>
								<span></span>
							</div>
						        <?php echo $this->Form->create('Criadero');?>   

								<div class="content">
									<div class="_50">
									<label>Propietario</label>
										<p>
											<?php echo $this->Form->select('propietario_id',$propietarios, array('class'=>'required'));?>
										</p>
									</div>
									<div class="_50">
									<label>Copropietario</label>
										<p>
											   <?php echo $this->Form->select('copropietario_id', $propietarios, array('class'=>'required'));?>
										</p>
									</div>
									<div class="_100">
									<label>Direccion Criadero</label>
										<p>
											<?php echo $this->Form->text('direccion')?>
										</p>
									</div>
									<div class="_50">
											<label>	Telefonos fijos</label>
										<p>
										
										 <?php echo $this->Form->text('telefono1')?>
										 &nbsp;              
										 <?php echo $this->Form->text('telefono2')?>
										</p>
									</div>
									<div class="_50">
											<label>	Celulares</label>
										<p>
										<?php echo $this->Form->text('celular1')?>&nbsp;
										<?php echo $this->Form->text('celular2')?>
										</p>
									</div>
									<div class="_50">
											<label>	Correos electr&oacute;nicos</label>
										<p>
										 <?php echo $this->Form->text('email1')?>&nbsp;
										 <?php echo $this->Form->text('email2')?>
										</p>
									</div>
									<div class="_50">
											<label>	P&aacute;gina web</label>
										<p>
										 <?php echo $this->Form->text('paginaweb')?>
										</p>
									</div>
									<div class="_100">
										<label>	Nombre afijo</label>
										<p>
										 <?php echo $this->Form->text('nombre', array('id'=>'nomb', 'size'=>'50',  'class'=>"validate[required]  input-text"));?>
										</p>
									</div>
									<div class="_50">
										<label>	Escoga si es o no socio</label>
										<p><?php echo $this->Form->radio('tipo_id', $tipos)?></p>
									</div>
									<div class="_50">
										<label>	Fecha-desde</label>
										<p><input id="date" type="date" class="required" data-date-relative="now"/></p>
									</div>
									<div class="_100">
									<label>REGISTRO NUEVO CRIADERO</label>
									<label>Razas criadero</label>
										 <div id="sheepItForm">
                 
                  <!-- Form template-->
                  <div id="sheepItForm_template" class="sheep">
                    <label for="sheepItForm_#index#_phone">Raza <span id="sheepItForm_label"></span></label>
                    <?php echo $this->Form->select(null, $razas, array('name'=>"data[Raza][#index#][raza_id]"));?>
                    <a id="sheepItForm_remove_current">
                    <?php echo $this->Html->image('cross.png',array('class'=>'delete'))?>
                    </a>
                  </div>
                  <!-- /Form template-->
                  <!-- No forms template -->
                  <div id="sheepItForm_noforms_template">Sin razas</div>
                  <!-- /No forms template-->
                  <!-- Controls -->
                  <div id="sheepItForm_controls">
                    <div id="sheepItForm_add" class="btn form add"><a><span>A&ntilde;adir</span></a></div>
                    <div id="sheepItForm_remove_last" class="btn form remove"><a><span>Remover</span></a></div>
                    
                  </div>
                <!-- /Controls -->
                </div>
                <!-- /sheepIt Form -->
				</div>
				<div class="_100">
					
					<label>OBSERVACIONES CRIADERO</label>
					<p><!-- sheepIt Form -->
                <div id="sheepItFormB">
                 
                  <!-- Form template-->
                  <div id="sheepItFormB_template" class="sheep">
                    <label for="sheepItFormB_#index#_phone">Observacion: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->textarea(null, array('name'=>"data[Observacionesinscripcioncriadero][#index#][observacion]"));?>
                    &nbsp;
                    <label for="sheepItFormB_#index#_phone">Observaciones Exclusivo Oficina Nacional: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->textarea(null, array('name'=>"data[Observacionesinscripcioncriadero][#index#][obsexclusivo]"));?>
                    <a id="sheepItFormB_remove_current">
                    <?php echo $this->Html->image('cross.png',array('class'=>'delete'))?>
                    </a>
                  </div>
                  <!-- /Form template-->
                   
                  <!-- No forms template -->
                  <div id="sheepItFormB_noforms_template">Sin razas</div>
                  <!-- /No forms template-->
                   
                  <!-- Controls -->
                  <div id="sheepItFormB_controls">
                    <div id="sheepItFormB_add" class="btn form add"><a><span>A&ntilde;adir</span></a></div>
                    <div id="sheepItFormB_remove_last" class="btn form remove"><a><span>Remover</span></a></div>
                    <div id="sheepItFormB_remove_all" class="btn form removeAll"><a><span>Remove todos</span></a></div>
                 
                  </div>
              
                  <!-- /Controls -->
                   
                </div>
                <!-- /sheepIt Form -->
                </p>
				</div>
				<div class="_100">
					
					<?php echo $this->Form->input('estado', array('type' => 'select', 'options' => $opt, 'selected' => '1'));?>
					 <?php $fecha = date("Y-m-d H:m:s"); echo $this->Form->hidden('fecha', array("value"=>$fecha));?>
				</div>
									
									
								</div>
								<div class="actions">
									<div class="actions-left">
										<input type="reset" value="Limpiar" />
									</div>
									<div class="actions-right">
										<?php $options=array('Value'=>'Registrar')?>
										<?php echo $this->Form->end($options);?>										

									</div>
								</div>
							</form>
						</div> <!-- End of .box -->
					</div> <!-- End of .grid_6 -->
            
         
         
         
         
         
       
      
      
          
    <!-- /content --> 
    
  </div>
  
   